﻿<!DOCTYPE html>
<!--高处作业安全许可证审批-->
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

    <script src="../../static/js/Mock/JobLicenseApp_wanglr.js"></script>
    <script src="../../static/js/Resource/JobLicenseApp_wanglr.js"></script>
    <style>
        body {
            padding-bottom: 10px;
        }

        .toptitle label {
            margin-left: 20px;
        }

        .align_left {
            text-align: left;
        }

        table {
            width: 100%;
            border-top: 1px solid;
            border-left: 1px solid;
            text-align: center;
            /*border-right: none;*/
        }

            table td {
                border-right: 1px solid;
                border-bottom: 1px solid;
                /*height:38px;*/
                padding: 10px;
            }

        .floatDiv {
            position: fixed;
            top: 10%;
            left: 1px;
            border: 1px solid #ccc;
            background: #EBEEF5;
            cursor: pointer;
            width: 14px;
            font-size: 14px;
            padding: 10px;
        }
    </style>

</head>
<body>
    
<div id="app" v-cloak>   
        <div @click="DialogInput" class="floatDiv">
            相关表格
        </div>
        <div style="width:100%;text-align:center ">
            <label style="font-weight:bold">高处作业安全许可证审批</label>
        </div>
        <div style="width:100%;text-align:right" class="toptitle">
            <label>2018-09-09</label>
            <label>Q/G11-018-R01</label>
            <label>No.：{{id}}</label>
        </div>
        <el-form :model="Form" status-icon style="margin-top:5px;width:100%" :rules="rules" ref="ruleForm">

            <table cellpadding="0" cellspacing="0" style=""></table>
            <table cellpadding="0" cellspacing="0" style="border-top:none;">
                <tr>
                    <td width="10%" rowspan="5">{{TemporaryOperationSafetyLicense.WorkContent}}</td>
                    <td width="10%">{{SecurityAndRiskConfirmationCard.OperatingUnit}}</td>
                    <td width="20%">{{Form.OperatingUnit}}</td>
                    <td width="10%">{{ConfinedSpace.BelongUnit}}</td>
                    <td width="20%">{{Form.BelongUnit}}</td>
                    <td width="10%">{{ConfinedSpaceWorkSafety.WorkingArea}}</td>
                    <td width="20%">{{Form.WorkingArea}}</td>
                </tr>
                <tr>
                    <td>{{ConfinedSpaceWorkSafety.JobLocation}}</td>
                    <td colspan="3">{{Form.JobLocation}}</td>
                    <td>{{HighWorkSafetyPermit.WorkHeight}}</td>
                    <td>{{Form.WorkHeight}}米</td>
                </tr>

                <tr>
                    <td>{{HighWorkSafetyPermit.WorkContent}}</td>
                    <td colspan="5" class="align_left">{{Form.WorkContent}}</td>
                </tr>
                <tr>
                    <td>{{HighWorkSafetyPermit.InvolvingOtherSpecialOperations}}</td>
                    <td colspan="5" class="align_left">{{Form.InvolvingOtherSpecialOperations}}</td>
                </tr>
                <tr>
                    <td colspan="6">
                        <span style="width:50%;text-align:center;float:left;">
                            <el-checkbox v-model="Form.contractor">{{HotWorkSafetyLicense.contractor}}</el-checkbox>
                        </span>
                        <span style="width:50%;text-align:center;float:left;">
                            等级：一级
                        </span>
                    </td>
                </tr>
                <tr>
                    <td>{{SecurityAndRiskConfirmationCard.id}}</td>
                    <td colspan="4">{{HighWorkSafetyPermit.SafetyMeasures}}</td>
                    <td>{{ConfinedSpace.Implementation}}</td>
                    <td>{{ConfinedSpace.ConfirmerSignature}}</td>
                </tr>
                <tr v-for="(v,i) in Form.HighTaskMeasures">
                    <td>{{i+1}}</td>
                    <td colspan="4" class="align_left">{{v.SaftyMeasures}}</td>
                    <td>{{v.Implementation}}</td>
                    <td>
                        <signature v-model="v.ConfirmerSignature">
                    </td>
                </tr>
                <!--基于数据库管控要求begin-->
                <!--<tr>
                    <td colspan="7" class="align_left">
                        {{HighWorkSafetyPermit.BasedDatabaseManagementRequirements}}
                    </td>
                </tr>
                <tr>
                    <td>{{SecurityAndRiskConfirmationCard.id}}</td>
                    <td colspan="4">{{HighWorkSafetyPermit.ControlRequirements}}</td>
                    <td>{{ConfinedSpace.Implementation}}</td>
                    <td>{{ConfinedSpace.ConfirmerSignature}}</td>
                </tr>
                <tr>
                    <td>1</td>
                    <td colspan="4" class="align_left">1.1、完善皮管捆扎合格标准；</td>
                    <td>未落实</td>
                    <td><signature v-model="Form.ControlRequirementsSign1"></td>
                </tr>
                <tr>
                    <td>2</td>
                    <td colspan="4" class="align_left">
                        2.1、人员入职前进行三级教育<br />
                        2.2、入职后，每月车间主任组织一次安全考核、培训和安全例会，进行安全经验分享和知识分享；
                    </td>
                    <td>未落实</td>
                    <td><signature v-model="Form.ControlRequirementsSign2"></td>
                </tr>-->
                <!--基于数据库管控要求end-->
                <tr>
                    <td rowspan="3">{{ConfinedSpace.Licensing}}</td>
                    <td colspan="6" class="align_left">
                        我保证我及我的下属，已经了解本次高处作业的安全方案和此许可证的相关内容，并保证在高处作业开始前确认各项安全措施已落实，在作业过程中执行相关安全规定，在作业结束时及时通知属地单位负责人。<br />
                        {{TemporaryOperationSafetyLicense.applicant+mark.m}}<signature v-model="Form.applicant">
                    </td>
                </tr>
                <tr>
                    <td colspan="6" class="align_left">
                        本人在工作开始前, 已掌握本次高处作业的内容及安全方案, 并对作业内容及安全措施进行了现场检查, 确认各项安全措施已落实。<br />
                        <span>
                            {{ConfinedSpaceWorkSafety.Operator+mark.m}}<signature v-model="Form.Operator">
                        </span>
                        <span>
                            {{HighWorkSafetyPermit.HSESecurityOfficer+mark.m}}<signature v-model="Form.HSESecurityOfficer">
                        </span>
                        <span>
                            {{HighWorkSafetyPermit.Guardian+mark.m}}<signature v-model="Form.Guardian">
                        </span>
                    </td>
                </tr>
                <tr>
                    <td colspan="6" class="align_left">
                        本人已审核与本许可证相关的文件，并确认符合高处作业安全管理规定的要求，并对作业现场进行了检查, 确认安全措施已落实，同意高处作业。<br />
                        <span>
                            {{HighWorkSafetyPermit.TerritorialReviewer+mark.m}}<signature v-model="Form.TerritorialReviewer">
                        </span>
                        <span>
                            {{HighWorkSafetyPermit.Production+mark.m}}<signature v-model="Form.Production">
                        </span>
                        <span>
                            {{HighWorkSafetyPermit.GeneralManager+mark.m}}<signature v-model="Form.GeneralManager">
                        </span>
                    </td>
                </tr>
                <tr>
                    <td colspan="7" class="align_left">
                        我已确认，本次作业已全部结束，现场已得到妥善处理，本票证关闭。<br />
                        {{ScaffoldingChecklist.RelatedPeople+mark.m}}<signature v-model="Form.RelatedPeople">
                    </td>
                </tr>
            </table>


            <el-row>
                <el-form-item style="text-align:center; padding-top:5px">
                    <el-button type="primary" @click="onSubmitForm('ruleForm')">{{col.btnCommit}}</el-button>
                    <el-button type="primary" @click="parent.ListItem.dialogVisible=false">{{col.btnBack}}</el-button>
                </el-form-item>
            </el-row>
        </el-form>
        <el-dialog :title="DialogTitle" fullscreen="true" :visible.sync="ListItem.dialogVisible" width="80%" height="80%" top="10vh">
            <iframe ref="iframe" :src="ListItem.InputUrl" style="height:95%;width:100%" frameborder="0"></iframe>
        </el-dialog>
    </div>
    <script type="text/javascript">

        app = new Vue({
            el: '#app',
            data: function () {
                return {
                    id: '123',
                    DialogTitle: '相关表格',
                    ListItem: ListItem,
                    Form: {
                        RelatedPeople: '',//作业负责人
                        GeneralManager: '',//总经理/生产部和HSE部经理会签审核
                        Production: '',//生产部/HSE部审核人
                        TerritorialReviewer: '',//属地审核人
                        Guardian: '',//监护人
                        HSESecurityOfficer: '',//HSE部安全员
                        Operator: '',//作业人
                        applicant: '',//申请人
                        ControlRequirementsSign1: '',//控制要求确认人签字
                        ControlRequirementsSign2: '',//控制要求确认人签字
                    },
                    rules: {},
                }
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                getData: function () {
                    getData(this, '/api/HighTask/getMock?id=123');
                },
                DialogInput: function () {
                    DialogShow(this, 'xg', "GeneralLiftingWorkDetailedTable.html", this.id);
                },
                //提交数据
                onSubmitForm: function (formName) {
                    var mythis = this;
                    this.$refs[formName].validate(function (valid) {
                        //验证通过
                        if (valid) {
                            onSubmitForm(this, '/api/HighTask/Save', mythis.Form);
                        } else {
                            //验证失败
                            return false;
                        }
                    });
                },
            },
            mounted: function () {

                this.getData();

            }
        });
    </script>

</body>
</html>